import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Products from './views/products/Table.vue'
import commentTable from './views/products/commentTable.vue'
import specsTable from './views/products/specsTable.vue'
import categorysTable from './views/products/categorysTable.vue'

import Orders from './views/orders/Table.vue'

import Stations from './views/stations/Table.vue'

import System from './views/system/Table.vue'

import city from './views/Travel/City.vue'
import WxUser from './views/User/User.vue'

import echarts from './views/charts/echarts.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '用户中心',
        iconCls: 'fa fa-user-circle',//图标样式class
        children: [
            { path: '/main', component: Main, name: '首页',hidden : true},  //？ 重要信息放首页
            { path: '/users', component: WxUser, name: '用户管理' }  //  完成
        ]
    },
    {
        path: '/',
        component: Home,
        name: '商品中心',
        iconCls: 'fa fa-shopping-bag',
        children: [
            { path: '/categorys', component: categorysTable, name: '分类管理'},  //完成
            { path: '/products', component: Products, name: '商品管理'},  //完成90%，差商品编辑表单  1.18
            { path: '/specs', component: specsTable, name: '库存管理'},   //1.18完成 重点
            { path: '/itemcomments', component: commentTable, name: '评价管理' }  //完成90% 1.18
        ]
    },
    {
        path: '/',
        component: Home,
        name: '订单中心',
        iconCls: 'fa fa-bars',
        children: [
            { path: '/orders', component: Orders, name: '订单管理' }    //完成
        ]
    },
    {
        path : '/',
        component: Home,
        name: '送礼中心',
        iconCls: 'fa fa-gift',
        children:[
            { path: '/form', component: Orders, name: '礼品卡管理'}  //1.19
        ]
    },
    {
        path: '/',
        component: Home,
        name: '配送中心',
        iconCls: 'fa fa-truck',
        children: [
            { path: '/citys', component: city, name: '城市管理'},  //完成
            { path: '/stations', component: Stations, name: '高铁站管理' },  //1.19
            { path: '/workers', component: Stations, name: '闪送管理'},  //1.19
            { path: '/form', component: Stations, name: '快递管理'}   //？ 沟通快递处理方式
        ]
    },
    {
        path: '/',
        component: Home,
        name: '管理中心',
        iconCls: 'fa fa-cog',
        children: [
            { path: '/adminusers', component: System, name: '管理员管理' }, //1.19  配送员
            { path: '/roles', component: Orders, name: '角色权限管理' },  //1.19
            { path: '/ads', component: Orders, name: '广告管理'},  //1.19
            { path: '/system', component: Orders, name: '系统设置' }  //？  沟通订单规则，其它规则
        ],
    },
    {
        path: '/',
        component: Home,
        name: '促销中心',
        iconCls: 'fa fa-star',
        children: [
            { path: '/form', component: Orders, name: '订单满减' },  //二期,细节待沟通
            { path: '/form', component: Orders, name: '商品满送' },  //二期,细节待沟通
            { path: '/form', component: Orders, name: '限时秒杀' },  //二期,细节待沟通
            { path: '/user', component: Orders, name: '其它促销模块...' },  //二期,待沟通
        ],
        hidden : true
    },
    {
        path: '/',
        component: Home,
        name: '报表中心',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: '财务管理' }  //二期,要确认需要哪些报表 或则 自定义？
        ],
        hidden: true
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;